package com.javaketang.dky.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javaketang.dky.entity.EasybuyProductCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.sql.Wrapper;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author dky
 * @since 2021-07-06
 */
@Repository
public interface EasybuyProductCategoryMapper extends BaseMapper<EasybuyProductCategory> {


    /**
     * 查询所有产品类别
     *
     * @return
     */
    public List queryAllProductCategory(Page page);


    /**
     * 根据id查询分类管理
     * @param id
     * @return
     */
    public List<EasybuyProductCategory> queryCategoryById(Integer id);

    /**
     * 查询商品
     * @param id
     * @param type
     * @return
     */
    public List queryProduct(Page page,Integer id,Integer type);


    /**
     * 查询商品
     * @param pid
     * @return
     */
    public List queryProductClassify(List<Integer> list);


}
